# api_base.py
class APIBase:
    def __init__(self, config):
        self.config = config

    def generate_news(self, topic):
        raise NotImplementedError("This method should be overridden by subclasses.")
